package com.nit.lab.vote.entity.vote;

import com.fasterxml.jackson.annotation.JsonFormat;

import java.util.Date;

public class VoteEntity {
    private Long voteId;
    private Long userId;
    private Long projectId;
    private Long candidateId;
    private String agree;
    private String subLevel;
    private String workLevel;
    @JsonFormat(pattern = "yyyy-MM-dd", timezone = "GMT+8")
    private Date gmtCreate;

    public VoteEntity() {
    }

    public VoteEntity(Long voteId, Long userId, Long projectId, Long candidateId, String agree, String subLevel, String workLevel, Date gmtCreate) {
        this.voteId = voteId;
        this.userId = userId;
        this.projectId = projectId;
        this.candidateId = candidateId;
        this.agree = agree;
        this.subLevel = subLevel;
        this.workLevel = workLevel;
        this.gmtCreate = gmtCreate;
    }

    public Long getVoteId() {
        return voteId;
    }

    public void setVoteId(Long voteId) {
        this.voteId = voteId;
    }

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public Long getProjectId() {
        return projectId;
    }

    public void setProjectId(Long projectId) {
        this.projectId = projectId;
    }

    public Long getCandidateId() {
        return candidateId;
    }

    public void setCandidateId(Long candidateId) {
        this.candidateId = candidateId;
    }

    public String getAgree() {
        return agree;
    }

    public void setAgree(String agree) {
        this.agree = agree;
    }

    public String getSubLevel() {
        return subLevel;
    }

    public void setSubLevel(String subLevel) {
        this.subLevel = subLevel;
    }

    public String getWorkLevel() {
        return workLevel;
    }

    public void setWorkLevel(String workLevel) {
        this.workLevel = workLevel;
    }

    public Date getGmtCreate() {
        return gmtCreate;
    }

    public void setGmtCreate(Date gmtCreate) {
        this.gmtCreate = gmtCreate;
    }
}
